<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp"%>
<c:set value="${requestScope.response.data.one }" var="one"/>
<c:set value="${requestScope.ordersGoodsResponse.data.list }" var="ordersGoodsList"/>
<!DOCTYPE html>
<html lang="en">
	<head>
		<title>订单详情 - 西餐厅管理系统</title>
		<%@ include file="/common/include/head_title.jsp"%>
	</head>
	<body>
		<jsp:include page="/header.htm"></jsp:include>
		<section class="blog-section spad">
	        <div class="container">
				<div class="col-md-10 offset-2">
					<h2
						class="col-sm-10 col-sm-offset-1 form-signin-heading text-center">订单信息</h2>
					<div class="form-group">
						<label for="email" class="col-sm-3 control-label">收货人姓名:</label>
						${one.receName }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">收货人手机:</label>
						${one.recePhone }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">收货人地址:</label>
						${one.receAddress }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">总价格:</label>
						${one.totalPrice }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">折扣:</label>
						${one.discount }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">应付金额:</label>
						${one.dealAmount }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">状态:</label>
						${one.statusStr }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">备注:</label>
						${one.content }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">注册时间:</label>
						${one.createTime }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">更新时间:</label>
						${one.updateTime }
					</div>
					<div class="form-group">
						<label for="inputPassword" class="col-sm-3 control-label">支付时间:</label>
						${one.payTime }
					</div>
				</div>
				
				<div class="col-md-12">
					<h2 class="sub-header">商品明细</h2>
					<div class="table-responsive">
						<table class="table table-striped table-hover">
							<thead>
								<tr>
									<th>序号</th>
									<th>标题</th>
									<th>价格</th>
									<th>数量</th>
									<th>总价格</th>
									<th>状态</th>
									<th>下单时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${ordersGoodsList }" var="listTemp" varStatus="stat">
									<tr>
										<td>${stat.count }</td>
										<td title="${listTemp.name}">
											<a href="${rootPath }/goodsInfo.htm?id=${listTemp.goodsId}" target="_blank">
												${fn:substring(listTemp.name,0,subStrLen) }
											</a>
										</td>
										<td>${listTemp.price}</td>
										<td>${listTemp.num }</td>
										<td>${listTemp.totalPrice }</td>
										<td>${listTemp.statusStr }</td>
										<td>${listTemp.createTime }</td>
										<td>
											<a target="_blank" href="${rootPath }/head/goods/evalInsert.htm?goodsId=${listTemp.goodsId}" class="btn btn-danger">
												评论
											</a>
										</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
					
			</div>
	    </section>
		<%@ include file="/common/include/head_footer.jsp"%>
	</body>
</html>